package com.zzyl.config;

import com.zzyl.intercept.TokenIntercepter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Description webConfig
 * @Author loe
 * @Date 2024-07-10
 */

@Configuration
public class webConfig implements WebMvcConfigurer {
    @Autowired
    private TokenIntercepter tokenIntercepter;

    // @Override
    // public void addInterceptors(InterceptorRegistry registry) {
    //     registry.addInterceptor(tokenIntercepter)
    //             .addPathPatterns("/**")
    //             .excludePathPatterns("/**/login")
    //             .excludePathPatterns("/**/upload");
    // }
}
